<%@ include file="/WEB-INF/jsp/includes.jsp" %>
<%@ include file="/WEB-INF/jsp/header.jsp" %>

<h2>activeDevice:online</h2>
<hr />
<h2>Do you want to be friends with them ?</h2>

<table>
  <thead>
    <th>Person_id</th>
    <th>Id</th>
    <th>Device_sn</th>
    <th>Conn_datetime</th>
    <th>Distance</th>
    <th>Direction</th>
  </thead>
  <c:forEach var="device" items="${cerDeviceList}">
    <tr>
    <td>${device.person_id}</td>
    <td>${device.id}</td>
    <td>${device.device_sn}</td>
    <td>${device.conn_datetime}</td>
    <td>${device.distance}m</td>
    <td>${device.direction}</td>
    </tr>
  </c:forEach>
</table>

<ul>
  <li><a href="<spring:url value="/personsOnline" htmlEscape="true" />">Details of All Person online</a></li>
</ul>
<%@ include file="/WEB-INF/jsp/footer.jsp" %>
